package com.ruiben.mall.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "product_photo")
public class ProductPhoto {
    @Id
    private String id;

    /**
     * 商品id
     */
    @Column(name = "product_id")
    private String productId;

    /**
     * 图片地址
     */
    @Column(name = "image_path")
    private String imagePath;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取商品id
     *
     * @return product_id - 商品id
     */
    public String getProductId() {
        return productId;
    }

    /**
     * 设置商人id
     *
     * @param productId 商品id
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * 获取图片地址
     *
     * @return image_path - 图片地址
     */
    public String getImagePath() {
        return imagePath;
    }

    /**
     * 设置图片地址
     *
     * @param imagePath 图片地址
     */
    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }
}